package cn.lcvc.xnc.authority.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * 接收前端传递过来的权限集合
 */
@ApiModel(value="角色的权限集合表单")
@Data
public class RolePermissionParam {
    @ApiModelProperty(value="角色id")
    @NotNull(message = "角色id不能为空")
    private Integer roleId;
    @ApiModelProperty(value="权限id集合",required = true,example = "[1,2,3]")
    @NotNull(message = "permissionIds不能为空")
    private Set<Long> permissionIds;
}
